package com.etoak.common.core.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Data
@Component
@ConfigurationProperties(prefix = "image")
public class ImageProperties {

    /**
     * 图片上传目录
     */
    private String location;

    /**
     * 图片访问地址前缀
     */
    private String mapping;

    /**
     * 支持的图片类型
     */
    private List<String> types;
}
